<%@ page import="com.fhd.constant.Constants" %><%--
  Created by IntelliJ IDEA.
  User: 44252
  Date: 2025/3/26
  Time: 10:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h2>这里是商户注册页面</h2>
<h3>请输入：</h3>
<form method="post" action="<%=request.getContextPath()%>/signUp.do">
    <% String signUpMessage = (String)request.getSession().getAttribute(Constants.SIGN_UP_MESSAGE);
        if (signUpMessage != null) {
            out.print("<h4 style=\"color: red\">" + signUpMessage + "</h4>");
            request.getSession().removeAttribute(Constants.SIGN_UP_MESSAGE);
        }
    %>
    <%--  进到SignUpServlet中的signUpMerchant方法  --%>
    <input type="hidden" name="method" value="signUpMerchant">
    <div>
        <label for="userCode">账号：</label>
        <input type="text" name="userCode" id="userCode" required maxlength="20">
    </div>
    <br>
    <div>
        <label for="userPassword">密码：</label>
        <input type="password" name="userPassword" id="userPassword" required maxlength="20">
    </div>
    <br>
    <div>
        <label for="userName">昵称：</label>
        <input type="text" name="userName" id="userName" required maxlength="20">
    </div>
    <br>
    <div>
        <label for="shopName">店铺名：</label>
        <input type="text" name="shopName" id="shopName" required maxlength="20">
    </div>
    <br>
    <div>
        <label for="address">地址：</label>
        <input type="text" name="address" id="address" required maxlength="50">
    </div>
    <br>
    <div>
        <label for="phone">联系电话：</label>
        <input type="text" name="phone" id="phone" required maxlength="20" pattern="^1[3-9]\d{9}$">
    </div>
    <br>
    <div>
        <label for="keyWord">店铺关键词：</label>
        <input type="text" name="keyWord" id="keyWord" required maxlength="20" >
    </div>
    <br>
    <div>
        <label for="workTimeBegin">营业开始时间：</label>
        <input type="time" name="workTimeBegin" id="workTimeBegin" required>
    </div>
    <br>
    <div>
        <label for="workTimeEnd">营业结束时间：</label>
        <input type="time" name="workTimeEnd" id="workTimeEnd" required>
    </div>
    <br>
    <div>
        <input type="submit">
    </div>
</form>
<br>
    <a href="login.jsp">返回登录</a>
</body>
</html>
